From 59bd15894168bd853d3814e4af6e9a3247cf72d3 Mon Sep 17 00:00:00 2001 From: robertlipe Date: Wed, 10 Jul 2013 00:14:34 +0000 Subject: [PATCH] Fix problem in self-closing tags in GPX extensions, such as would be found in geocaches with no travel bugs --- gpsbabel/gpx.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gpsbabel/gpx.cc b/gpsbabel/gpx.cc index 1b57bdbf4..da7b551b3 100644 --- a/gpsbabel/gpx.cc +++ b/gpsbabel/gpx.cc @@ -1429,6 +1429,8 @@ fprint_xml_chain(xml_tag* tag, const waypoint* wpt) if (!tag->cdata && !tag->child) { write_tag_attributes(tag); + // No children? Self-closing tag. + writer.writeEndElement(); } else { write_tag_attributes(tag); -- 2.30.2